{% extends 'AdminBundle:base:index.html.twig' %}
    {% block title %}模版{% endblock %}
    {% block description %}显示 模版{% endblock %}
    {% block css %}
        <link rel="stylesheet" href="/admin/assets/css/bootstrap-duallistbox.min.css"/>
    {% endblock %}

    {% block head %}{{ parent() }}{% endblock %}

    {% block breadcrumbs %}
        {% embed "AdminBundle:base:breadcrumbs.html.twig" %}
            {% block breadcrumb %}
                <li><a href="{{ path('tasktemplate_index') }}">模版</a></li>
                <li><a href="{{ path('tasktemplate_new') }}">新建</a></li>
                <li><a href="{{ path('tasktemplate_edit', { 'id': dataSource.id }) }}">编辑</a></li>
                <li class="active">查看</li>
            {% endblock %}
        {% endembed %}
    {% endblock %}


    {% block content %}
        <table class="table  table-bordered table-hover">
            <tbody>
            <tr>
                <th>名称</th>
                <td>{{ dataSource.name }}</td>
            </tr>
            <tr>
                <th>注释</th>
                <td>{{ dataSource.note }}</td>
            </tr>
            <tr>
                <th>Isenabled</th>
                <td>{% if dataSource.isEnabled %}Yes{% else %}No{% endif %}</td>
            </tr>
            <tr>
                <th>创建者</th>
                <td>{{ dataSource.creator }}</td>
            </tr>
            <tr>
                <th>Ip</th>
                <td>{{ dataSource.ip }}</td>
            </tr>
            <tr>
                <th>创建时间</th>
                <td>{% if dataSource.ctime %}{{ dataSource.ctime|date('Y-m-d H:i:s') }}{% endif %}</td>
            </tr>
            <tr>
                <th>资源定位符</th>
                <td>{{ dataSource.uri }}</td>
            </tr>
            <tr>
                <th>方法</th>
                <td>{{ dataSource.method }}</td>
            </tr>
            <tr>
                <th>动作</th>
                <td>{{ dataSource.action }}</td>
            </tr>
            <tr>
                <th>参数</th>
                <td>{{ dataSource.param }}</td>
            </tr>
            <tr>
                <th>Id</th>
                <td>{{ dataSource.id }}</td>
            </tr>
            </tbody>
        </table>

        <div class="clearfix form-actions">
            <div class="col-md-offset-3 col-md-5">
                {{ form_start(delete_form) }}
                <button type="submit" class="btn btn-danger btn-block">删除</button>
                {{ form_end(delete_form) }}
            </div>
        </div>
    {% endblock %}
